<?php
/**

 */
class Form_Signup extends App_Form
{
    public function __construct($options = null)
    {
        parent::__construct($options);

        // change the class on the outer <dl> tag
        $this->getDecorator('HtmlTag')->setOption('class', 'form');

        $this->setName('signup');
        
        $email = $this->textElement('email', 'Email');
        $email->addValidator(new App_Validate_UniqueEmail);
        
        $password = $this->password('password','Password');
        
        $password2 = $this->password('password2','Password Again');
/*
		$items = App_Timezone::getTimezones();
		$timezone = $this->selectElement('timezone','Timezone',$items );     

        $check_terms_label = "I agree to the <a target='_blank' href='/privacy.html'>Privacy Policy</a> and <a target='_blank' href='/terms.html'>Terms of Use</a>.";
		$check_terms = $this->checkBoxElement('terms_agree', $check_terms_label);
*/      
        $submit = $this->submit('submit', 'Sign Up');
        
        // create array of elements to add to the form
        //$elements = array($email, $password, $password2, $timezone, $check_terms, $submit);
        $elements = array($email, $password, $password2, $submit);
        
        $this->addElements($elements);

        // add error summary decorator (will list all validation errors at the
        // top of the form - all 'Error' decorators should be disabled since we
        // are not showing the errors next to the input item (just turning the
        // labels red)
        $this->addDecorator(new App_Form_Decorator_FormErrors(
                   array('placement'=>Zend_Form_Decorator_Abstract::PREPEND,
                    'message'=>'Summary')));

    }

    public function isValid($data)
    {
        
        return true;
    }

}
